package com.ssy.lingxi.order.model.vo.common.response;

import com.ssy.lingxi.order.model.constant.OrderServiceContants;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 物流能力 - 分页查询订单列表返回
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-04
 */
public class LogisticsOrderQueryVO implements Serializable {
    private static final long serialVersionUID = 3124317831096676941L;

    public LogisticsOrderQueryVO(Long orderId, String orderNo, LocalDateTime createTime, String digest, Long buyerMemberId, Long buyerRoleId, String buyerMemberName) {
        this.orderId = orderId;
        this.orderNo = orderNo;
        this.createTime = createTime.format(OrderServiceContants.DEFAULT_TIME_FORMATTER);
        this.digest = digest;
        this.buyerMemberId = buyerMemberId;
        this.buyerRoleId = buyerRoleId;
        this.buyerMemberName = buyerMemberName;
    }

    /**
     * 订单Id
     */
    private Long orderId;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 订单提交时间
     */
    private String createTime;

    /**
     * 订单摘要
     */
    private String digest;

    /**
     * 采购会员Id
     */
    private Long buyerMemberId;

    /**
     * 采购会员角色Id
     */
    private Long buyerRoleId;

    /**
     * 采购会员名称
     */
    private String buyerMemberName;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public Long getBuyerMemberId() {
        return buyerMemberId;
    }

    public void setBuyerMemberId(Long buyerMemberId) {
        this.buyerMemberId = buyerMemberId;
    }

    public Long getBuyerRoleId() {
        return buyerRoleId;
    }

    public void setBuyerRoleId(Long buyerRoleId) {
        this.buyerRoleId = buyerRoleId;
    }

    public String getBuyerMemberName() {
        return buyerMemberName;
    }

    public void setBuyerMemberName(String buyerMemberName) {
        this.buyerMemberName = buyerMemberName;
    }
}
